﻿using System;
using System.Windows.Forms;

namespace CSharp大作业.Gobang.Game
{
    public partial class GameMode : Form
    {
        public int mode = 0;//默认简单模式
        public GameMode()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            mode = 0;
            DialogResult = DialogResult.OK;
            MessageBox.Show("已更改为简单模式", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            mode = 1;
            DialogResult = DialogResult.OK;
            MessageBox.Show("已更改为困难模式", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            this.Close();
        }

        private void GameMode_Load(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {
            mode = 2;
            DialogResult = DialogResult.OK;
            MessageBox.Show("已更改为炼狱模式", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            this.Close();
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {

        }
    }
}
